﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleRest.Core.Extensions.OAuth
{
    public class MacToken
    {
        /// <summary>
        /// REQUIRED.  The MAC key identifier.
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// REQUIRED.  The request timestamp.  The value MUST be a positive
        /// integer set by the client when making each request to the
        /// number of seconds elapsed from a fixed point in time (e.g.
        /// January 1, 1970 00:00:00 GMT).  The value MUST NOT include
        /// leading zeros (e.g. "000273154346").
        /// </summary>
        public string ts { get; set; }
        /// <summary>
        /// REQUIRED.  The HTTP request MAC as described in Section 3.2 (http://tools.ietf.org/html/draft-ietf-oauth-v2-http-mac-01#section-3.2)
        /// </summary>
        public string mac { get; set; }
        /// <summary>
        /// REQUIRED.  A unique string generated by the client.  The value
        /// MUST be unique across all requests with the same timestamp and
        /// MAC key identifier combination.
        /// </summary>
        public string nonce { get; set; }
        /// <summary>
        /// OPTIONAL.  A string used to include additional information
        /// which is covered by the request MAC.  The content and format of 
        /// the string is beyond the scope of this specification.
        /// </summary>
        public string ext { get; set; }
    }
}
